<extend name="./Application/Common/View/block/base.php" />
<block name="header">
    <include file="./Application/Admin/View/block/easyui_header.php" />
    <link href="/extend/umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
    <link href="__PUBLIC__/css/Content/show.css" rel="stylesheet" type="text/css" />
</block>
<block name="bdoy">
    <body>
        <form action="" method="post" onsubmit="return $(this).form('validate');">
            <table cellspacing="0" width="100%" class="">
                <tr>
                    <td class="label"><strong>{:LANG('parent')}: </strong></td>
                    <td class="form-line">
                        <select class="easyui-combobox nav-select" name="parent_id"
                                data-options="prompt:'请选择',required:true">
                            <option></option>
                            <option value="0">作为顶级菜单</option>
                            <volist name="parents" id="parent">
                                <option value="{$parent['id']}">{$parent['name']}</option>
                            </volist>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('eng_name')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text" name="name" id="name" size="50" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'请输入英文名称',required:true,validType:'length[2,50]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('nav_name')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text" name="title" id="title" size="50" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'请输入中文名称',required:true,validType:'length[2,50]'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('front_url')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text url-text" name="url" id="url" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'请输入链接地址'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('admin_url')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text url-text" name="admin_url" id="admin_url" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'请输入链接地址'">
                    </td>
                </tr>
                <tr>
                    <td class="label"><label for="istofront"><strong>{:LANG('is_show')}: </strong></label></td>
                    <td class="form-line">
                        <input name="istofront" id="istofront" type="checkbox" value="1">
                    </td>
                </tr>
                <tr>
                    <td class="label"><label for="contentable"><strong>{:LANG('is_singel_page')}: </strong></label></td>
                    <td class="form-line">
                        <input name="contentable" id="contentable" type="checkbox" value="1">
                    </td>
                </tr>
                <tr>
                    <td class="label"><strong>{:LANG('sort')}: </strong></td>
                    <td class="form-line">
                        <input class="easyui-textbox easyui-validatebox input-text" name="sort" id="sort" style="height: 24px;line-height: 24px;"
                               data-options="prompt:'请输入序号'">
                    </td>
                </tr>

                <tr>
                    <td class="label"></td>
                    <td class="form-line">
                        <input type="submit" class="submit-button bule-button" value="{:LANG('save')}">
                        <input type="button" onclick="close_dialog()" class="submit-button" value="{:LANG('cancel')}">
                    </td>
                </tr>
            </table>
        </form>
        <div id="p" class="easyui-panel" title="{:LANG('url_tip')}" style="width:100%;height:250px;padding:10px;">
            {:LANG('nav_tip')}
        </div>
    </body>
</block>
<block name="footExtendJs">
    <!--百度编辑器-->
    <script type="text/javascript" charset="utf-8" src="/extend/umeditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/extend/umeditor/umeditor.min.js"></script>
    <script type="text/javascript" src="/extend/umeditor/lang/zh-cn/zh-cn.js"></script>
    <script>
        var serverPath = '/extend/umeditor/php/',
            um = UM.getEditor('editor', {
                imageUrl:serverPath + "imageUp.php",
                imagePath:serverPath,
                lang:/^zh/.test(navigator.language || navigator.browserLanguage || navigator.userLanguage) ? 'zh-cn' : 'en',
                langPath:UMEDITOR_CONFIG.UMEDITOR_HOME_URL + "lang/",
                focus: true
            });

    </script>
    <!--百度编辑器-->


</block>
